package com.example.leavevaadin;

import java.io.IOException;

import javax.servlet.RequestDispatcher;
import javax.servlet.ServletConfig;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class IndexApp extends HttpServlet {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
/*	private static RequestDispatcher homeJsp;
	@Override
	public void init(ServletConfig config) throws ServletException {
		ServletContext context= config.getServletContext();
		
		homeJsp = context.getRequestDispatcher("/");
	}*/
	
	
	
	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
		/*homeJsp.forward(req, resp);*/
		resp.sendRedirect("/LeaveOnline/");
	}

}
